﻿using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Transactions;
using System.Web.Mvc;

using IsolationLevel = System.Transactions.IsolationLevel;

using SmesharikiMVC.Models.VideoCollection;

namespace SmesharikiMVC.Areas.Admin.Controllers
{
    public class AlbumController : Controller
    {
        private VideoCollectionContext db = new VideoCollectionContext();

        //
        // GET: /Admin/Album/
        [Authorize]
        public ViewResult Index()
        {
            return View(db.Albums.ToList());
        }

        protected override void Dispose(bool disposing)
        {
            db.Dispose();
            base.Dispose(disposing);
        }
    }
}